package com.wing.cabinet.model.response;

import com.wing.cabinet.model.entity.BrandLife;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.time.LocalDateTime;
import java.math.BigDecimal;

/**
 * 品牌平均寿命VO
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class BrandLifeVO {

    /**
     * ID
     */
    private Long id;

    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime createTime;

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * year
     */
    private Integer year;

    /**
     * month
     */
    private Integer month;

    /**
     * 寿命达成率
     */
    private BigDecimal rate;

    /**
     * 品牌
     */
    private Long brandId;

    /**
     * useTime
     */
    private Integer useTime;

    /**
     * sumTime
     */
    private Integer sumTime;

    /**
     * 企业编码
     */
    private String enterpriseCode;

    /**
     * 品牌名称
     */
    private String name;

    private Integer quantity;

    private BrandLife.LifeUnit lifeUnit;

    private BigDecimal sumRate;

    private Integer value;

    private String ratio;

}
